import { createApp } from "vue";
import "./style.scss";
import App from "./App.vue";
import "@/assets/iconfont/iconfont.css"
import router from "./router";
import './permission';
import setupElement from "./utils/setupElement+";

// element样式文件
import "element-plus/dist/index.css";

const app = createApp(App);

// 安装注册pinia
import {installPinia} from './store/index.js';
installPinia(app);

// 安装使用到的组件elementplus组件
setupElement(app);

//全局注册icon组件
import iconfont from './components/IconFont/index.vue';
app.component("iconfont",iconfont)

app.use(router).mount("#app");
